<div class="febs-container" id="customer-viewreason">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="customer-viewreason-form">
                            <input type="hidden" name="id">
                            <div class="layui-form-item">
                                <label class="layui-form-label">审核结果：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${reason.statusName}"></div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">审批意见：</label>
                                <div class="layui-input-block">
                                    <textarea name="opinion" maxlength="100" class="layui-textarea" readOnly></textarea>
                                </div>
                            </div>

            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="customer-viewreason-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var reason = [[${reason}]];

        layui.use(['jquery','febs', 'form', 'validate'], function () {
            var $ = layui.$,
                febs = layui.febs,
                layer = layui.layer,
                form = layui.form,
                $view = $('#customer-viewreason'),
                validate = layui.validate;

            form.verify(validate);
            form.render();

            initFormValue();

            function initFormValue() {
                if (reason) {
                    form.val("customer-viewreason-form", {
                        "statusName": reason.statusName,
                        "opinion": reason.opinion,
                    });
                }
            }

        });
</script>
